import { defineStore } from 'pinia'
import { ref } from 'vue'

export const settingStore = defineStore(
  'setting',
  () => {
    const hasMusic = ref(false)
    const changeHasMusic = (newV) => {
      hasMusic.value = newV
    }
    return { hasMusic, changeHasMusic }
  },
  {
    persist: true,
  },
)
